import Vue from 'vue'
import App from './App'
import uView from "uview-ui"

import starbg from 'components/starBG/starBG.vue'

Vue.component('stars', starbg)

Vue.use(uView)


// 引入封装的全部请求
import all from './api/api.js'
// 遍历注册请求
for (let i = 0; i < all.length ; i++){
	const key = all.key[i]
	Vue.prototype[key] = all.val[i]
}


Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
